A business that's collectively owned by a group of people who have bought shares in it is called a joint-stock company.
In the past, businesses that sold stock in the company and gave a percentage of ownership to each person who held shares were called joint-stock companies. One important example of a joint-stock company was England's East India Company. These entities are now considered to be the ancestors of today's shareholder-owned corporations, like Amazon and Apple.